/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ez2find.manager;

import com.ez2find.model.Area;
import com.ez2find.model.Personal;
import com.ez2find.model.CategoriaPersonal;
import com.ez2find.model.RegisterUser;
import com.ez2find.model.Site;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Owner
 */
@Local
public interface PersonalManagerLocal {

    void create(Personal personal) throws Exception;

    void delete(Personal personal) throws Exception;

    Personal find(long id);

    long lastCode();

    List<Personal> listAll();

    List<Personal> listPersonalsArea(Area area, boolean personalC, CategoriaPersonal personalCategorie, String consult);

    List<Personal> listPersonalsSite(Site site, boolean personalC, CategoriaPersonal personalCategorie, String consult);

    Personal merge(Personal personal) throws Exception;

    void update(Personal personal) throws Exception;
    
}
